package com.czxy.demo01;

public class Test18 {
    public static void main(String[] args) {
        Alto a1 = new Alto("奥拓","黑色",500);
        Audi a2 = new Audi("奥迪","红色",1000);

        RentalHouse r = new RentalHouse();
        double rent = r.rent(a1, 2);
        System.out.println("奥拓两个月的租金是："+rent);
    }
}
